package com.woniu.springbootshiro.service;

import com.woniu.springbootshiro.mapper.GroupLightMapper;
import com.woniu.springbootshiro.pojo.GroupLight;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupLightService {

    @Autowired
    private GroupLightMapper glm;

    public List<GroupLight> queryAll() {
        return glm.selectAll();
    }

    public int addGroupLight(GroupLight groupLight){
        return glm.insertSelective(groupLight);
    }

    public int deleteGroupLight(int id){return glm.deleteByPrimaryKey(id);}

    public int updateGroupLight(GroupLight groupLight){return glm.updateByPrimaryKey(groupLight);}

}
